<?php

require_once 'restler/restler.php';
spl_autoload_register('spl_autoload');

$r = new Restler();
$r->setSupportedFormats('XmlFormat');
$r->addAPIClass('Barang');
$r->addAPIClass('Barangs');
$r->addAPIClass('Entity');
$r->addAPIClass('Entities');
$r->addAPIClass('Stok');
$r->addAPIClass('Stoks');
$r->addAPIClass('User');
$r->addAPIClass('Users');
$r->handle();
